import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';

import { MaterialModule } from '../core/modules/material.module';

import { SharedModule } from '../shared/shared.module';
import { UsersDemoRoutingModule } from './users-demo-routing.module';

import { AddComponent } from './add/add.component';
import { EditComponent } from './edit/edit.component';
import { FileUploadComponent } from './file-upload/file-upload.component';
import { SearchBarComponent } from './search-bar/search-bar.component';
import { UsersDemoComponent } from './users-demo.component';
import { UserDetailComponent } from './user-detail/user-detail.component';
import { MaterialTableComponent } from './material-table/material-table.component';
import { UserService } from './shared/user.service';
import { UserLoadStateService } from './shared/user-load-state.service';
import { DevExtremeModule } from '../core/modules/dev-extreme.module';

@NgModule({
    imports: [
        SharedModule,
        UsersDemoRoutingModule,
        MaterialModule,
        DevExtremeModule
    ],
    declarations: [
        AddComponent,
        EditComponent,
        FileUploadComponent,
        UsersDemoComponent,
        UserDetailComponent,
        SearchBarComponent,
        MaterialTableComponent
    ],
    providers: [
        UserService,
        UserLoadStateService
    ],
    schemas: [
        NO_ERRORS_SCHEMA
    ]
})
export class UsersDemoModule { }